<script type="text/html" template lay-done="layui.data.sendParams(d);">
    <div class="layui-form coreshop-form layui-form-pane" lay-filter="LAY-app-CoreCmsChannel-editForm" id="LAY-app-CoreCmsChannel-editForm">
	    <input type="hidden" name="id"  value="{{d.params.data.id || '' }}" />
	    <div class="layui-form-item">
            <label for="id" class="layui-form-label  layui-form-required">id</label>
            <div class="layui-input-block">
                <input  type="number" min="0" max="999999" name="id"   lay-verType="tips" lay-verify="required|number" class="layui-input" value="{{d.params.data.id || '' }}" placeholder="请输入id" lay-reqText="请输入id并为数字"  />
            </div>
        </div>
	    
	    <div class="layui-form-item">
            <label for="name" class="layui-form-label  layui-form-required">渠道名字</label>
            <div class="layui-input-block">
                <input name="name"   lay-verType="tips" lay-verify="required" class="layui-input" placeholder="请输入渠道名字" lay-reqText="请输入渠道名字"  value="{{d.params.data.name || '' }}" />
            </div>
        </div>
	    
	    <div class="layui-form-item">
            <label for="method" class="layui-form-label  layui-form-required">接口</label>
            <div class="layui-input-block">
                <input name="method"   lay-verType="tips" lay-verify="required" class="layui-input" placeholder="请输入接口" lay-reqText="请输入接口"  value="{{d.params.data.method || '' }}" />
            </div>
        </div>
	    
	    <div class="layui-form-item">
            <label for="app_id" class="layui-form-label  layui-form-required">应用ID</label>
            <div class="layui-input-block">
                <input name="app_id"   lay-verType="tips" lay-verify="required" class="layui-input" placeholder="请输入应用ID" lay-reqText="请输入应用ID"  value="{{d.params.data.app_id || '' }}" />
            </div>
        </div>
	    
	    <div class="layui-form-item">
            <label for="sign" class="layui-form-label  layui-form-required">sign</label>
            <div class="layui-input-block">
                <input name="sign"   lay-verType="tips" lay-verify="required" class="layui-input" placeholder="请输入sign" lay-reqText="请输入sign"  value="{{d.params.data.sign || '' }}" />
            </div>
        </div>
	    
	    <div class="layui-form-item">
            <label for="secret" class="layui-form-label  layui-form-required">secret</label>
            <div class="layui-input-block">
                <input name="secret"   lay-verType="tips" lay-verify="required" class="layui-input" placeholder="请输入secret" lay-reqText="请输入secret"  value="{{d.params.data.secret || '' }}" />
            </div>
        </div>
	    
	    <div class="layui-form-item">
            <label for="createtime" class="layui-form-label  layui-form-required">创建时间</label>
            <div class="layui-input-block">
                <input name="createtime"  id="editTime-CoreCmsChannel-createtime" type="text" lay-verType="tips" lay-verify="required|datetime" class="layui-input" placeholder="请输入创建时间" lay-reqText="请输入创建时间"   value="{{d.params.data.createtime || '' }}"/>
            </div>
        </div>
	    
	    <div class="layui-form-item">
            <label for="create_time_start" class="layui-form-label  layui-form-required">订单创建起始时间</label>
            <div class="layui-input-block">
                <input name="create_time_start"  id="editTime-CoreCmsChannel-create_time_start" type="text" lay-verType="tips" lay-verify="required|datetime" class="layui-input" placeholder="请输入订单创建起始时间" lay-reqText="请输入订单创建起始时间"   value="{{d.params.data.create_time_start || '' }}"/>
            </div>
        </div>
	    
	    <div class="layui-form-item">
            <label for="create_time_end" class="layui-form-label  layui-form-required">订单创建截止时间</label>
            <div class="layui-input-block">
                <input name="create_time_end"  id="editTime-CoreCmsChannel-create_time_end" type="text" lay-verType="tips" lay-verify="required|datetime" class="layui-input" placeholder="请输入订单创建截止时间" lay-reqText="请输入订单创建截止时间"   value="{{d.params.data.create_time_end || '' }}"/>
            </div>
        </div>
	    
	    <div class="layui-form-item">
            <label for="update_time_start" class="layui-form-label  layui-form-required">订单更新起始时间</label>
            <div class="layui-input-block">
                <input name="update_time_start"  id="editTime-CoreCmsChannel-update_time_start" type="text" lay-verType="tips" lay-verify="required|datetime" class="layui-input" placeholder="请输入订单更新起始时间" lay-reqText="请输入订单更新起始时间"   value="{{d.params.data.update_time_start || '' }}"/>
            </div>
        </div>
	    
	    <div class="layui-form-item">
            <label for="update_time_end" class="layui-form-label  layui-form-required">订单更新截止时间</label>
            <div class="layui-input-block">
                <input name="update_time_end"  id="editTime-CoreCmsChannel-update_time_end" type="text" lay-verType="tips" lay-verify="required|datetime" class="layui-input" placeholder="请输入订单更新截止时间" lay-reqText="请输入订单更新截止时间"   value="{{d.params.data.update_time_end || '' }}"/>
            </div>
        </div>
	    
	    <div class="layui-form-item">
            <label for="status" class="layui-form-label  layui-form-required">订单状态</label>
            <div class="layui-input-block">
                <input name="status"   lay-verType="tips" lay-verify="required" class="layui-input" placeholder="请输入订单状态" lay-reqText="请输入订单状态"  value="{{d.params.data.status || '' }}" />
            </div>
        </div>
	    
	    <div class="layui-form-item">
            <label for="have_after_sale" class="layui-form-label  layui-form-required">是否存在售后</label>
            <div class="layui-input-block">
                <input name="have_after_sale"   lay-verType="tips" lay-verify="required" class="layui-input" placeholder="请输入是否存在售后" lay-reqText="请输入是否存在售后"  value="{{d.params.data.have_after_sale || '' }}" />
            </div>
        </div>
	    
	    <div class="layui-form-item">
            <label for="next_id" class="layui-form-label  layui-form-required">查询起点页数</label>
            <div class="layui-input-block">
                <input  type="number" min="0" max="999999" name="next_id"   lay-verType="tips" lay-verify="required|number" class="layui-input" value="{{d.params.data.next_id || '' }}" placeholder="请输入查询起点页数" lay-reqText="请输入查询起点页数并为数字"  />
            </div>
        </div>
	    
	    <div class="layui-form-item">
            <label for="limit" class="layui-form-label  layui-form-required">条数</label>
            <div class="layui-input-block">
                <input  type="number" min="0" max="999999" name="limit"   lay-verType="tips" lay-verify="required|number" class="layui-input" value="{{d.params.data.limit || '' }}" placeholder="请输入条数" lay-reqText="请输入条数并为数字"  />
            </div>
        </div>
	    
	    <div class="layui-form-item">
            <label for="platformId" class="layui-form-label  layui-form-required">平台ID</label>
            <div class="layui-input-block">
                <input  type="number" min="0" max="999999" name="platformId"   lay-verType="tips" lay-verify="required|number" class="layui-input" value="{{d.params.data.platformId || '' }}" placeholder="请输入平台ID" lay-reqText="请输入平台ID并为数字"  />
            </div>
        </div>
	    
        <div class="layui-form-item text-right core-hidden">
            <input type="button" class="layui-btn" lay-submit lay-filter="LAY-app-CoreCmsChannel-editForm-submit" id="LAY-app-CoreCmsChannel-editForm-submit" value="确认编辑">
        </div>
    </div>
</script>
<script>
    var debug= layui.setter.debug;
    layui.data.sendParams = function (d) {
        //开启调试情况下获取接口赋值数据
        if (debug) { console.log(d.params.data); }
        layui.use(['admin', 'form', 'laydate', 'upload', 'coreHelper', 'cropperImg'],
        function () {
            var $ = layui.$
                , form = layui.form
                , admin = layui.admin
                , laydate = layui.laydate
                , upload = layui.upload
                , cropperImg = layui.cropperImg
                , coreHelper = layui.coreHelper;
        
            laydate.render({
                elem: '#editTime-CoreCmsChannel-createtime',
                type: 'datetime',
                fullPanel: true
            });
            laydate.render({
                elem: '#editTime-CoreCmsChannel-create_time_start',
                type: 'datetime',
                fullPanel: true
            });
            laydate.render({
                elem: '#editTime-CoreCmsChannel-create_time_end',
                type: 'datetime',
                fullPanel: true
            });
            laydate.render({
                elem: '#editTime-CoreCmsChannel-update_time_start',
                type: 'datetime',
                fullPanel: true
            });
            laydate.render({
                elem: '#editTime-CoreCmsChannel-update_time_end',
                type: 'datetime',
                fullPanel: true
            });
            form.verify({
                
            });
            //重载form
            form.render(null, 'LAY-app-CoreCmsChannel-editForm');
        })
    };
</script>
